<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/WEB-INF/facelets/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"                 
                xmlns:f="http://java.sun.com/jsf/core">

	<ui:param name="title" value="Admin - Validate pic"/>

	<ui:define name="header">
		<p><b> List of pics to validate </b></p>

	</ui:define>

	<ui:define name="pageContents">
		<h:form>
			<p>
			<p:dataTable var="news" value="#{viewPicControllerBean.pics}">

				<p:column selectionMode="multiple" />

				<p:column sortBy="#{todo.User}">
					<f:facet name="header">
						<h:outputText value="Username" />
					</f:facet>
					<h:outputText value="#{todo.getID}" />
				</p:column>

				<p:column sortBy="#{todo.getPic}">
					<f:facet name="header">
						<h:outputText value="Pic URL or whtever" />
					</f:facet>
					<h:outputText value="#{todo.getPic}" />
				</p:column>

				<p:column sortBy="#{todo.getDate}">
					<f:facet name="header">
						<h:outputText value="Date of request" />
					</f:facet>
					<h:outputText value="#{todo.getDate}" />
				</p:column>

			</p:dataTable>

			</p>
			<h:commandButton value="Accept selected" action="#{tjolhoppBean.acceptSelected}"/>
			<h:commandButton value="Refuse selected" action="#{tjolahoppBean.refuseSelected}"/>

		</h:form>
	</ui:define>

</ui:composition>